<template>
  <div>
    <div class="personal_top_container">
      <div class="personal_top">
        <div class="personal_top_img">
          <van-uploader v-model="fileList">
            <template #preview-cover="{ file }">
              <div class="preview-cover van-ellipsis">{{ file.name }}</div>
            </template>
          </van-uploader>
        </div>
        <div class="personal_top_p">
          <div class="personal_top_liji">立即登录</div>
          <div class="personal_top_jifen">
            <div>积分</div>
            <div>积分</div>
          </div>
        </div>
      </div>
    </div>
    <div>
      <van-notice-bar
        left-icon="volume-o"
        text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。"
      />
    </div>
    <div class="personal_header">
      <div class="personal_header_a">
        <div><van-icon name="orders-o" color="orange" size="0.5rem" /></div>
        <span>我的订单</span>
      </div>
      <div class="personal_header_b">></div>
    </div>
    <div class="personal_footer">
      <div class="personal_footer_one">
        <van-grid>
          <van-grid-item icon="paid" text="待付款" />
          <van-grid-item icon="send-gift-o" text="代发货" />
          <van-grid-item icon="logistics" text="待收货" />
          <van-grid-item icon="notes-o" text="待评价" />
        </van-grid>
      </div>
      <div class="personal_footer_two">
        <van-grid :border="false" :column-num="3">
          <van-grid-item>
             <van-grid-item icon="gold-coin-o" text="我的余额" color="red" />
          </van-grid-item>
          <van-grid-item>
            <van-grid-item icon="edit" text="我的砍价" color="red" />
          </van-grid-item>
          <van-grid-item>
           <van-grid-item icon="coupon-o" text="我的礼券" color="orange" />
          </van-grid-item>
        </van-grid>
         <van-grid :border="false" :column-num="3">
          <van-grid-item>
            <van-grid-item icon="star-o" text="我的收藏" color="orange" />
          </van-grid-item>
          <van-grid-item @click="address">
           <van-grid-item icon="location-o" text="我的地址" color="blue" />
          </van-grid-item>
          <van-grid-item>
           <van-grid-item icon="service-o" text="联系客服" color="blue" />
          </van-grid-item>
        </van-grid>
      </div>
    </div>
  </div>
</template>
<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        address(){
            this.$router.push('/address')
        }
    },
}
</script>
<style lang="scss" scoped >
.personal_top_container {
  width: 100%;
  height: 3rem;
  background-color: #c1b18f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  .personal_top {
    width: 90%;
    height: 2rem;
    // background-color: blanchedalmond;
    display: inline-flex;

    align-items: center;
    .personal_top_img {
      .van-uploader__input {
        border-radius: 50px;
      }
    }
    .personal_top_p {
      .personal_top_liji {
        font-size: 0.5rem;
        margin-bottom: 0.1rem;
        color: white;
      }
      .personal_top_jifen {
        display: inline-flex;
        div {
          width: 1rem;
          height: 0.6rem;
          background-color: rgba(0, 0, 0, 0.2);
          text-align: center;
          line-height: 0.6rem;
          color: white;
          border-radius: 5px;
        }
      }
    }
  }
}
.personal_header {
  width: 100%;
  height: 1rem;
  box-sizing: border-box;
  border-bottom: 1px solid gainsboro;
  padding: 0.2rem 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  .personal_header_a {
    display: inline-flex;
    align-items: center;
    span {
      // line-height: 1rem;
      font-size: 0.3rem;
      margin-left: 0.2rem;
    }
  }
  .personal_header_b {
    font-size: 0.5rem;
    color: gray;
  }
}
.personal_footer {
  width: 100%;
  .personal_footer_one {
    width: 100%;
  }
  .personal_footer_two {
    width: 100%;
  }
}
</style>